package com.service.impl;

import com.dao.IMylog;
import com.model.MyLog;
import com.service.MylogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MylogServiceImpl implements MylogService {
    @Autowired
    private IMylog iMylog;

    @Override
    public int addMylog(MyLog myLog) {

        return iMylog.insertMyLog(myLog);
    }

    @Override
    public MyLog getLog(int userID){

        return iMylog.getMylog(userID);
    }

    @Override
    public int updateMyLog(MyLog myLog) {

        return iMylog.updateMylog(myLog);
    }

    @Override
    public int deleteMyLog(int userID) {

        return iMylog.deleteMylog(userID);
    }
}
